package leetcode.code078;

import java.util.List;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution078 implements IDebug {

	public abstract List<List<Integer>> subsets(int[] nums);

	@Override
	public void debug1() {
		String string = "[1,2,3]";
		String string1 = "[[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3]]";
		this.debug(string, string1);
	}

	private void debug(String string, String string1) {
		int[] nums = HelpDebug.str2array3(string);
		List<List<Integer>> result = this.subsets(nums);
//		List<List<Integer>> expect = HelpDebug.str2intlist(string1);
//		HelpDebug.compare(string1, result);
		HelpDebug.printObject(result);
	}

	@Override
	public void debug2() {
		String string = "[0]";
		String string1 = "[[],[0]]";
		this.debug(string, string1);
	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
